home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / manage / snmp / mit / doc / snmpnext.tex < prev    next >
Encoding:
Text File  |  1991-05-17  |  2.0 KB  |  69 lines

  1. %
  2. %    $Header: snmpnext.tex,v 3.0 91/05/17 16:16:11 jrd Rel $
  3. %    Author: J. Davin
  4. %    Copyright 1988, 1989, Massachusetts Institute of Technology
  5. %
  6.  
  7. \newpage
  8. \subsection{The Snmpnext Command}
  9.  
  10. The snmpnext command attempts to retrieve and display
  11. specified subtrees of the MIB.
  12. It is coded to run in a BSD 4.3 UNIX environment.
  13.  
  14. The code for the snmpnext command illustrates the use of the
  15. Development Kit to accelerate development
  16. of network management applications as well as the
  17. use of the SNMP protocol {\it next} operation.
  18.  
  19. Sources for the snmpnext command reside in the
  20. \verb"snmpnext" subdirectory of the Development Kit
  21. distribution hierarchy.
  22.  
  23. It is invoked with the syntax:
  24.  
  25. {\bf snmpnext} [{\bf -h} {\it remoteHost}] [{\bf -p} {\it remotePort}]
  26. [{\bf -c} {\it communityName}]
  27. [{\bf -t} {\it timeout}]
  28. [{\bf -i} {\it requestId}]
  29. [{\it name} ] $\ldots$
  30.  
  31. If the {\bf -h} flag is present, then the program
  32. will send its management request
  33. to the IP address specified as {\it remoteHost.}
  34.  
  35. If the {\bf -p} flag is present, then the program
  36. will send its management request
  37. to the UDP port specified as {\it remotePort,}
  38. instead of that assigned to the ``snmp'' service
  39. in the \verb"/etc/services" database.
  40.  
  41. If the {\bf -c} flag is present, then the program
  42. will generate and accept management requests
  43. associated with the community name specified as {\it communityName,}
  44. instead of using the community name ``public.''
  45.  
  46. If the {\bf -i} flag is present, then the program
  47. will identify its first management request by
  48. the number specified as {\it requestId,}
  49. instead of using the value zero.
  50.  
  51. If the {\bf -t} flag is present, then the program
  52. will terminate after the number of seconds
  53. specified as {\it timeout,}
  54. instead of waiting forever for a response from the
  55. remote agent.
  56.  
  57. For example, the command
  58.  
  59. snmpnext -h anyhost 1.3.6.1.2.1.4.21.1
  60.  
  61. has the effect of retrieving the IP routing table
  62. for the host named {\it anyhost.} The command
  63.  
  64. snmpnext -h anyhost 1.3.6.1.2.1.5
  65.  
  66. has the effect of retrieving the all ICMP
  67. protocol statistics for the host named {\it anyhost.}
  68.  
  69.